#include<stdio.h>
void main()
{
	float num1=1.0,num2=1.0;
	int num3=1;
	while(1/num1>(1e-6))
	{
		num1=num1*num3;
		num2=num2+1/num1;
		num3++;
	}
		printf("num2=%8.6f\n",num2);

}